<template>
    <div class="parallax">
        <div class="parallax-content">
            <span>
                BLOG
            </span>
        </div>
    </div>
</template>

<script setup lang="ts" name="Parallax">

</script>

<style scoped>
.parallax {
    /* height: 200vh; */
    width: 100%;
    background-color: #000;
    overflow: hidden;
}
.parallax-content {
    height: 200vh;
    /* width: 100%; */
    position: relative;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/71/Sky_August_2010-1a.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-align: center;
    font: 900 20rem '';
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 0;
    background-color: aliceblue;
}
.parallax-content::before{
    content: '';
    position: absolute;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    /* background-color: rgba(0, 0, 0, 0.5); */
    z-index: -99;
}
</style>